Skip to content

Android emulator tests: make the AVD where the emulator looks for it - #829

Merged
ASDAlexander77 merged 2 commits into
mainfrom
android-emulator-avd-home
Nov 12, 2026
Merged

ASDAlexander77 merged 2 commits into
mainfrom
android-emulator-avd-home

Conversation

@ASDAlexander77

@ASDAlexander77 ASDAlexander77 commented Nov 12, 2026 •

Copy link
Copy Markdown
Owner

Release run 43251862764 (alpha125) failed in Run Android tests. The new start step now shows why the emulator exits:

ERROR | Unknown AVD name [tslang_api29_x86_64], use -list-avds to see valid list.
ERROR | HOME is defined but there is no file tslang_api29_x86_64.ini in $HOME/.android/avd

The runner's avdmanager made the AVD somewhere the emulator doesn't search.

Change

  • The run job sets ANDROID_USER_HOME and ANDROID_AVD_HOME to one directory in the workspace, so avdmanager and the emulator both use it.
  • The install step checks that emulator -list-avds names the AVD. If it doesn't, the step lists that directory and fails.

Second commit: a published package runs with its own release's tests

The first commit's run booted the emulator in about 25 s. Every leg passed except two tester tests, under every model: 00class_override_arity and 00optional_union_truthiness. Both were added after v0.0-pre-alpha124, together with the compiler fixes they check (#811, #815). The published compiler fails them, as it should.

When the job uses a published release's package (a PR or a manual run), it now also checks out that release's tslang/test/tester/tests and CMakeLists.txt. The runner and its skips stay this commit's, since they are what's being tested. A release run (package: artifact) is unchanged: its compiler and tests come from the same commit.

Testing

This PR changes the workflow, so its CI builds the tests and boots the emulator with the newest published package. Please let that run finish before merging: the last two PRs merged before their emulator runs got that far.

🤖 Generated with Claude Code

ASDAlexander77 and others added 2 commits November 12, 2026 16:25
Release run 43251862764's emulator exited at once: "Unknown AVD name
[tslang_api29_x86_64] ... no file tslang_api29_x86_64.ini in
$HOME/.android/avd". The runner's avdmanager had made it elsewhere. The run
job sets ANDROID_USER_HOME and ANDROID_AVD_HOME for both, and the install
step checks that `emulator -list-avds` names the AVD.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…'s tests

PR #829's run booted the emulator and passed everything but two tester
tests, 00class_override_arity and 00optional_union_truthiness, under every
model: both came after v0.0-pre-alpha124 with the compiler fixes they check
(#811, #815). When the job takes a published release's package, it now takes
that release's tslang/test/tester/tests and CMakeLists.txt too; the runner
and its skips stay the commit's own.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ASDAlexander77
ASDAlexander77 merged commit 6096a01 into main Nov 12, 2026
10 checks passed
@ASDAlexander77
ASDAlexander77 deleted the android-emulator-avd-home branch November 12, 2026 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant